package io.gitee.chearnee.fw.openapi.annotation;

import io.gitee.chearnee.fw.openapi.constant.enums.ResourcesTypeEnum;

import java.lang.annotation.*;

/**
 * 授权验证 指定方法,指定字段
 *
 * @author yangzhi
 * @Date 2021/9/23 19:12
 **/
@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface AuthValidate {

  /**
   * 资源类型
   *
   * @return
   * @see ResourcesTypeEnum
   */
  ResourcesTypeEnum value() default ResourcesTypeEnum.DEFAULT;
}
